package com.dhcc.bpm.modules.sandbox.service.impl;

import com.dhcc.bpm.modules.sandbox.entity.OpcSandboxCodeExpress;
import com.dhcc.bpm.modules.sandbox.vo.OpcSandboxCodeExpressVO;
import com.dhcc.bpm.modules.sandbox.mapper.OpcSandboxCodeExpressMapper;
import com.dhcc.bpm.modules.sandbox.service.IOpcSandboxCodeExpressService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.core.metadata.IPage;

import java.util.List;

/**
 * @ClassName OpcSandboxCodeExpressServiceImpl
 * @Description 返回码达式表 服务实现类
 * @Author sjm
 * @Date 2020/2/21 0021 15:16
 * @Version V1.0
 * @Copyright: 2020 东华软件 . All rights reserved.
 **/
@Service
public class OpcSandboxCodeExpressServiceImpl extends ServiceImpl<OpcSandboxCodeExpressMapper, OpcSandboxCodeExpress> implements IOpcSandboxCodeExpressService {

	/**
	 * 自定义分页
	 * @Author sjm
	 * @Date 18:15 2020/2/21 0021
	 * @param page
	 * @param opcSandboxCodeExpress
	 * @return com.baomidou.mybatisplus.core.metadata.IPage<com.dhcc.bpm.modules.sandbox.vo.OpcSandboxCodeExpressVO>
	 **/
	@Override
	public IPage<OpcSandboxCodeExpressVO> selectOpcSandboxCodeExpressPage(IPage<OpcSandboxCodeExpressVO> page, OpcSandboxCodeExpressVO opcSandboxCodeExpress) {
		return page.setRecords(baseMapper.selectOpcSandboxCodeExpressPage(page, opcSandboxCodeExpress));
	}

	/**
	 * 根据报文id查询表达式
	 * @Author sjm
	 * @Date 18:15 2020/2/21 0021
	 * @param codeId
	 * @return java.util.List<com.dhcc.bpm.modules.sandbox.entity.OpcSandboxCodeExpress>
	 **/
	@Override
	public List<OpcSandboxCodeExpress> selectByCodeId(String codeId) {
		return baseMapper.selectByCodeId(codeId);
	}

}
